#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif

void Test1() {
    bool ret = Solution().isValid("()");
    if (ret) {
        std::cout << "Test1 ok!" << std::endl;
    } else {
        std::cout << "Test1 failed! input: \"()\", output expected true, actual false" << std::endl;
    }
}

void Test2() {
    bool ret = Solution().isValid("()[]{}");
    if (ret) {
        std::cout << "Test2 ok!" << std::endl;
    } else {
        std::cout << "Test2 failed! input: \"()[]{}\", output expected true, actual false" << std::endl;
    }
}

void Test3() {
    bool ret = Solution().isValid("(]");
    if (!ret) {
        std::cout << "Test3 ok!" << std::endl;
    } else {
        std::cout << "Test3 failed! input: \"(]\", output expected false, actual true" << std::endl;
    }
}

void Test4() {
    bool ret = Solution().isValid("([)]");
    if (!ret) {
        std::cout << "Test4 ok!" << std::endl;
    } else {
        std::cout << "Test4 failed! input: \"([)]\", output expected false, actual true" << std::endl;
    }
}

void Test5() {
    bool ret = Solution().isValid("{[]}");
    if (ret) {
        std::cout << "Test5 ok!" << std::endl;
    } else {
        std::cout << "Test5 failed! input: \"{[]}\", output expected true, actual false" << std::endl;
    }
}

int main() {
    Test1();
    Test2();
    Test3();
    Test4();
    Test5();
    return 0;
}